# icon_adaptor.py
from utils.svg_renderer import SvgIconRenderer

class IconAdaptor:
    RESOLUTIONS = [32, 64, 128, 256]

    def __init__(self, svg_path):
        self.svg_renderer = SvgIconRenderer(svg_path)

    def generate_icons(self, output_dir):
        for res in self.RESOLUTIONS:
            pixmap = self.svg_renderer.render(res, res)
            pixmap.save(f"{output_dir}/icon_{res}x{res}.png")